Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(nebula_ros): add smoke tests #240

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

test(nebula_ros): add smoke tests #240

wants to merge 4 commits into from

Conversation

mojomex
Copy link
Collaborator

@mojomex mojomex commented Nov 27, 2024

PR Type

  • Improvement

Description

Add smoke tests for all sensors: each smoke test launches Nebula with the sensor's default configuration and with launch_hw:=false.

These ensure (among other behaviors) that:

  • Nebula is launchable in its default configuration
  • the node shuts down cleanly, without segfaults or exceptions

In a later PR, launch_hw:=true should also be included, testing whether Nebula can be terminated when waiting for a connection.

Review Procedure

Remarks

Pre-Review Checklist for the PR Author

PR Author should check the checkboxes below when creating the PR.

  • Assign PR to reviewer

Checklist for the PR Reviewer

Reviewers should check the checkboxes below before approval.

  • Commits are properly organized and messages are according to the guideline
  • (Optional) Unit tests have been written for new behavior
  • PR title describes the changes

Post-Review Checklist for the PR Author

PR Author should check the checkboxes below before merging.

  • All open points are addressed and tracked via issues or tickets

CI Checks

  • Build and test for PR: Required to pass before the merge.

@mojomex mojomex self-assigned this Nov 27, 2024
Copy link

codecov bot commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 27.00%. Comparing base (f4da047) to head (ad35b01).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #240      +/-   ##
==========================================
- Coverage   27.24%   27.00%   -0.24%     
==========================================
  Files         104      104              
  Lines        9445     9251     -194     
  Branches     2324     2051     -273     
==========================================
- Hits         2573     2498      -75     
+ Misses       6436     6339      -97     
+ Partials      436      414      -22     
Flag Coverage Δ
differential 27.00% <ø> (?)
total ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mojomex mojomex requested a review from drwnz February 3, 2025 09:41
mojomex added a commit that referenced this pull request Feb 3, 2025
commit ad35b01
Author: Max SCHMELLER <[email protected]>
Date:   Mon Dec 2 16:28:51 2024 +0900

    chore(cspell): add CMake's `TOLOWER` keyword to dictionary

    Signed-off-by: Max SCHMELLER <[email protected]>

commit 6dee292
Author: Max SCHMELLER <[email protected]>
Date:   Wed Nov 27 21:54:11 2024 +0900

    temp(nebula_tests): run nebula_tests on changes to nebula_ros, nebula_hw_interfaces too

    Signed-off-by: Max SCHMELLER <[email protected]>

commit e981de2
Author: Max SCHMELLER <[email protected]>
Date:   Wed Nov 27 21:36:27 2024 +0900

    temp: only Hesai smoke tests

    Signed-off-by: Max SCHMELLER <[email protected]>

commit 40b6532
Author: Max SCHMELLER <[email protected]>
Date:   Wed Nov 27 21:20:03 2024 +0900

    test(nebula_ros): add smoke test for every sensor

    Signed-off-by: Max SCHMELLER <[email protected]>

Signed-off-by: Max SCHMELLER <[email protected]>
Copy link
Collaborator

@drwnz drwnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - just added one comment about including XT16, since we have support for it now.

ament_lint_auto_find_test_dependencies()

foreach(MODEL Pandar40P Pandar64 PandarQT64 PandarQT128 Pandar128E4X PandarAT128 PandarXT32 PandarXT32M)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about adding XT16 to the Hesai smoke tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants